// unique namespace for the visualization object
var visual = {};

// Class constructor. Parameter container is a DOM element on the client that
// that will contain the visualization.
visual.dependencyDiagram = function(container) {
  this.containerElement = container;
}

// Main drawing logic.
// Parameters:
//   data is data to display, type google.visualization.DataTable.

visual.dependencyDiagram.prototype.draw = function(data,options) {

  var flashVars = {};
    var params = { menu: "false" };
	var width =  800;
	var height =  600;
    flashVars.data=encodeURIComponent(data.toJSON());
    swfobject.embedSWF("http://dependencydiagram.googlecode.com/svn/trunk/html/DependencyDiagram.swf", this.containerElement.id,
        width,
        height,
        "9.0.0", "playerProductInstall.swf", flashVars, params);
}

